﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class 实验二_2_7_Talk : System.Web.UI.Page
{
   static String msg = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Request.QueryString["name"] == null)
        {
            Response.Redirect("Login.aspx");
        }
       Label1.Text = "hello" + Request.QueryString["name"];
        Label2.Text = Session.Count.ToString();
        //Response.Write("    <script>setTimeout(\"location.href='Talk.aspx?name=" + Request.QueryString["name"] + "'\", 2000)</script>");
    }


    protected void timerTest_Tick(object sender, EventArgs e)
    {
        TextBox1.Text = msg;
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        msg += DateTime.Now +"--"+ Request.QueryString["name"] + ":<br>" +TextBox2.Text + "<br>";
    }

}